#region

using System.Reflection;
using Microsoft.Practices.Unity.InterceptionExtension;

#endregion

namespace SmartInspect.Extensions.Unity
{
    public static class MethodInputExtensions
    {
        public static bool IsPropertyAccessorMethodCall(this IMethodInvocation input)
        {
            MethodBase method = input.MethodBase;
            return (method.IsSpecialName && (method.Name.StartsWith("get_") || method.Name.StartsWith("set_")));
        }
    }
}